package besta.moon.engine.table;

import java.sql.*;

import besta.moon.engine.index.IndexDescription;

public class ForeignKey {

    public final String pkTable;
    public final String fkTable;
    public final IndexDescription pk;
    public final IndexDescription fk;
    public final int updateRule = DatabaseMetaData.importedKeyNoAction;
    public final int deleteRule = DatabaseMetaData.importedKeyNoAction;

    public ForeignKey(String pkTable, IndexDescription pk, String fkTable, IndexDescription fk) {
        this.pkTable = pkTable;
        this.fkTable = fkTable;
        this.pk = pk;
        this.fk = fk;
    }
}
